/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaproject;

/**
 *
 * @author hanxiao
 */
public class QuestionInfo {
    private int id;
    private String question;
    private String choiceA;
    private String choiceB;
    private String choiceC;
    private String choiceD;
    private String answer;
    
    public QuestionInfo(String answer){
        this.answer = answer;
    }
    
    public QuestionInfo(int id, String question, String choiceA, String choiceB, String choiceC, String choiceD){
        this.id = id;
        this.question = question;
        this.choiceA = choiceA;
        this.choiceB = choiceB;
        this.choiceC = choiceC;
        this.choiceD = choiceD;
        
    }
    public QuestionInfo(){
        
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the question
     */
    public String getQuestion() {
        return question;
    }

    /**
     * @param question the question to set
     */
    public void setQuestion(String question) {
        this.question = question;
    }

    /**
     * @return the choiceA
     */
    public String getChoiceA() {
        return choiceA;
    }

    /**
     * @param choiceA the choiceA to set
     */
    public void setChoiceA(String choiceA) {
        this.choiceA = choiceA;
    }

    /**
     * @return the choiceB
     */
    public String getChoiceB() {
        return choiceB;
    }

    /**
     * @param choiceB the choiceB to set
     */
    public void setChoiceB(String choiceB) {
        this.choiceB = choiceB;
    }

    /**
     * @return the choiceC
     */
    public String getChoiceC() {
        return choiceC;
    }

    /**
     * @param choiceC the choiceC to set
     */
    public void setChoiceC(String choiceC) {
        this.choiceC = choiceC;
    }

    /**
     * @return the choiceD
     */
    public String getChoiceD() {
        return choiceD;
    }

    /**
     * @param choiceD the choiceD to set
     */
    public void setChoiceD(String choiceD) {
        this.choiceD = choiceD;
    }

    /**
     * @return the answer
     */
    public String getAnswer() {
        return answer;
    }

    /**
     * @param answer the answer to set
     */
    public void setAnswer(String answer) {
        this.answer = answer;
    }
    
    @Override
    public String toString(){
        return this.question+"\n"+this.choiceA+"\n"+this.choiceB+"\n"+this.choiceC+"\n"+this.choiceD;
    }
    
}
